home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.BorderLayout;
- import java.awt.Container;
-
- public class SPPulsing2 extends Applet {
- SPPanel2 canvas1;
- PulsingBorderPanel2 panel1;
-
- public void init() {
- this.canvas1 = new SPPanel2(this, 0);
- this.panel1 = new PulsingBorderPanel2(this, 0);
- }
-
- public void start() {
- this.panel1.setLayout(new BorderLayout());
- this.panel1.add("Center", this.canvas1);
- ((Container)this).setLayout(new BorderLayout());
- ((Container)this).add("Center", this.panel1);
- this.panel1.Start();
- this.canvas1.Start();
- this.canvas1.repaint();
- }
-
- public void stop() {
- this.panel1.Stop();
- this.canvas1.Stop();
- }
- }
-